﻿// <copyright file="Page.xaml.cs" company="Microsoft Corporation">
// Copyright (c) 2009 Microsoft Corporation All Rights Reserved
// </copyright>
// <author>Michael S. Scherotter</author>
// <email>mischero@microsoft.com</email>
// <date>2009-04-17</date>
// <summary>Class definition for Silverlight Page</summary>

namespace Activities
{
    using System.Windows;
    using System.Windows.Browser;
    using System.Windows.Controls;

    /// <summary>
    /// Silverlight test page for CreateActivityRequest
    /// </summary>
    public partial class Page : UserControl
    {
        /// <summary>
        /// Initializes a new instance of the Page class.
        /// </summary>
        public Page()
        {
            InitializeComponent();
        }

        /// <summary>
        /// Create a new activity
        /// </summary>
        /// <param name="sender">the button</param>
        /// <param name="e">the routed event arguments</param>
        private void OnCreateActivity(object sender, RoutedEventArgs e)
        {
            var request = this.Resources["CreateActivityRequest"] as MyCreateActivityRequest;

            request.MakeRequest();
        }
    }
}
